#ifndef EQUALIZER_H
#define EQUALIZER_H
#include <stdint.h>
#include <QDockWidget>
#include <QtGui>
namespace Ui {
class Equalizer;
}

#define EQS_MAX 10
#define MAX_DB 20
#define MIN_DB -MAX_DB

class QTS: public QObject //sliders and etc
{
    Q_OBJECT
private:
    QRect sl_rect;
    QSlider * qsl_create(void);
    QLabel *qlbl_create(QString &text);
public:
    explicit QTS(unsigned n_hz);
    unsigned hz;
    int val;
    QSlider *sl;
    QLabel *lbl_top, *lbl_down;
public slots:
    void update_ref(void)
    {
        val = sl->value();
        this->lbl_top->setText(QString::number(val));
    }
};

class Equalizer : public QDockWidget
{
    Q_OBJECT
    
public:
    QTS  *eqs[EQS_MAX];
    uint32_t _fxs[EQS_MAX];
    explicit Equalizer(QWidget *parent);
    ~Equalizer();
signals:
     void update_channels(void);
private:
    Ui::Equalizer *ui;


};

#endif // EQUALIZER_H
